package com.dxy.md.user.mapper;

import com.dxy.md.core.DataSource;
import com.dxy.md.user.entity.User;
import org.apache.ibatis.annotations.Delete;

public interface UserMapper {
    void insertUser(User user);
    User selectById(Long id);

    @DataSource("slave")
    @Delete("delete from t_user where id = #{id}")
    void deleteUser(Long id);
}
